
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <title>申请售后记录</title>
    <link rel="stylesheet" href="__PUBLIC__/Home/css/memberOrder.css">
    <include file="Public/common_js"/>
</head>
<body>
<div class="warp">
    <div class="aftersale-detail-content">
        <!--类别→退款-->
        <?php
        if (!empty($refund_front)) {
        ?>
        <div class="aftersale-list-demo">
            <a href="{:url('MemberRefund/index',['order_id' => $refund_front['order_id'], 'sell' => 'refund_front_status'])}">
                <h3>退款记录</h3>
                <p><label>申请时间：</label><span>{:get_refund_goods_time($refund_front['id'], 1)}</span></p>
                <p><label>售后类型：</label><span>发货前退款</span></p>
                <p><label>退款商品：</label><span class="aftersale-shop">{:get_refund_goods($refund_front['id'])}</span></p>
                <p><label>退款原因：</label><span>{$refund_front['message']}</span></p>
                <p><label>退款金额：</label><span>￥{$refund_front['price']}</span></p>
                <p><label>审核结果：</label><span class="red">{:get_refund_status($refund_front['status'])}</span></p>
            </a>
        </div>
        <?php } ?>
        <!--类别→退款退货-->
        <?php
        if (!empty($refund_ago)) {
        ?>
        <div class="aftersale-list-demo mgTop">
            <?php
            if ($refund_ago['type'] == '2') {
            ?>
            <a href="{:url('MemberRefundGoods/index',['order_id' => $refund_ago['order_id'], 'sell' => 'refund_ago_money_status'])}">
                <?php } ?>
                <?php
            if ($refund_ago['type'] == '3') {
            ?>
            <a href="{:url('MemberRefundReturn/index',['order_id' => $refund_ago['order_id'], 'sell' => 'refund_ago_goods_status'])}">
                <?php } ?>
                <h3>退货/退款记录</h3>
                <p><label>申请时间：</label><span>{:get_refund_goods_time($refund_ago['id'], 1)}</span></p>
                <p><label>售后类型：</label><span><?php echo $refund_ago['type'] == '2' ? '售后退款' : '售后退款退货';?></span></p>
                <p><label>退款商品：</label><span class="aftersale-shop">{:get_refund_goods($refund_ago['id'])}</span></p>
                <p><label>退款原因：</label><span>{$refund_ago['message']}</span></p>
                <p><label>退款金额：</label><span>￥{$refund_ago['price']}</span></p>
                <p><label>审核结果：</label><span class="red">{:get_refund_status($refund_ago['status'])}</span></p>
            </a>
        </div>
        <?php } ?>
    </div>



</div>
<script>
    require(['memberOrderData'])
</script>
</body>
</html>
